home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / N-P / NIFTY / myCShell / protos < prev    next >
Encoding:
Text File  |  1991-12-24  |  6.1 KB  |  224 lines  |  [TEXT/KAHL]

  1. /*********************************************************
  2.  "protos"
  3.  
  4.  by John A. Love, III [ Washington Apple Pi Users' Group]
  5.  
  6.  using Symantec's "THINK C", v 5.00
  7.  *********************************************************/
  8.  
  9.  
  10. #ifndef    __GLOBALS__
  11. #include "globals.h"
  12. #endif
  13.  
  14. #ifndef __APPLEEVENTS__
  15. #include "AppleEvents.h"
  16. #endif
  17.  
  18. #include "about.h"
  19.  
  20.  
  21.  
  22.  
  23. /* ==============
  24.    "interface.c":
  25.    ============== */
  26. Handle            NewClearHandle (Size byteCount);
  27. Handle            NewSysHandle (Size byteCount);
  28. Handle            NewSysClearHandle (Size byteCount);
  29. Ptr                NewClearPtr (Size byteCount);
  30. Ptr                NewSysPtr (Size byteCount);
  31. Ptr                NewSysClearPtr (Size byteCount);
  32.  
  33.  
  34. /* =========
  35.    "idle.c":
  36.    ========= */
  37. void            DoPeriodic (void);
  38. void            PeriodicMenus (void);
  39. void            PeriodicWindows (void);
  40. Boolean            PeriodicHelp (void);
  41.  
  42.  
  43. /* =========
  44.    "cursor.c":
  45.    ========= */
  46. void            HandleCursor (void);
  47. void            InstallVBLTask (short rsrcID);
  48. void            RemoveVBLTask (void);
  49.  
  50.  
  51. /* =========
  52.    "misc.c":
  53.    ========= */
  54. void            InitManagers (void);
  55. Boolean            TestForColor (short *pixelDepth);
  56. Boolean            System7isUp (void);
  57. void            System7Braggart (void);
  58. void            LocalGlobal (Rect *r);
  59. void            GlobalLocal (Rect *r);
  60. short            Max (short a, short b);
  61. short            Min (short a, short b);
  62. double            xPOWERy (double x, double y);
  63. Boolean            TrapAvailable (short theTrap);
  64. Boolean            WNEisImplemented (void);
  65. void            PlaySound (char *mySound);
  66. long            GetStripAddressMask(void);
  67. Ptr                QuickStrip (long *myPtr);
  68. Boolean            isPString (char *myString);
  69. void            pStrCat (Str255 s1, Str255 s2, Str255 s3);
  70. void            pStrCopy (Str255 s1, Str255 s2);
  71. void            DoSpiffyIris (void);
  72. void            CenterRects (Rect *srcRect, Rect *withinRect);
  73. Boolean            cmpAlpha (char in, char with);
  74. char            nextAlpha (char start);
  75.  
  76.  
  77. /* ==========
  78.    "event.c":
  79.    ========== */
  80. void            MainEventLoop (void);
  81. void            HandleMouse (EventRecord *event, WindowPtr window, short part);
  82. void            HandleKey (EventRecord *event);
  83. void            HandleUpdate (WindowPtr window);
  84. void            HandleActivate (WindowPtr window);
  85. void            DoActivate (WindowPtr window);
  86. void            DoDeactivate (WindowPtr window);
  87. void            DoHighLevelEvent (EventRecord *event);
  88.  
  89.  
  90. /* ===========
  91.    "scroll.c":
  92.    =========== */
  93. short            GetControlType (ControlHandle ctl);
  94. ControlHandle    GetDefaultButton (DialogPtr dlg);
  95. void            FrameDefaultButton (DialogPtr dlg);
  96. void            SimulateClick (ControlHandle ctl);
  97. void            Scroll (ControlHandle ctl, short part, Point Pt);
  98. void            SetMaxCtls (WindowPtr windPtr);
  99. void            SetCtlsToMin (WindowPtr windPtr);
  100. Boolean            DrawMyControl (ControlHandle ctl);
  101. ControlHandle    ScrollHoriz (WindowPtr wp);
  102. ControlHandle    ScrollVert (WindowPtr wp);
  103. void            ScrollShow (WindowPtr wp);
  104. void            ScrollHide (WindowPtr wp);
  105. void            InvalidScroll (WindowPtr wp);
  106. void            ValidScroll (WindowPtr wp);
  107. void            ScrollResize (WindowPtr wp);
  108. void            ScrollText (Str255 myText, Rect *box);
  109.  
  110.  
  111. /* ================
  112.    "AppleEvents.c":
  113.    ================ */
  114. Boolean            AppleEventsActive (void);
  115. Boolean            PPCToolboxActive (void);
  116. OSErr            InitAppleEvents (void);
  117. OSErr            InitPPCToolbox (void);
  118. OSErr            AcceptHLEvent (void);
  119. OSErr            MissedAnyParameters (EventRecord *event, AppleEvent *theAEEvent);
  120.  
  121.  
  122. /* =========
  123.    "menu.c":
  124.    ========= */
  125. void             SetUpMainMenus (void);
  126. void            HandleMenu (EventRecord *event);
  127. void            DoApple (short menuCode);
  128. void            DoFile (short menuCode);
  129. void            DoEdit (short menuCode);
  130. void            DoQuit (void);
  131.  
  132.  
  133. /* ===========
  134.    "window.c":
  135.    =========== */
  136. Boolean            isActive (WindowPtr window);
  137. void            DoWindow (void);
  138. short            GetWindowType (WindowPtr window);
  139. Boolean            hasGrowIcon (WindowPtr window);
  140. void            DoZoom (WindowPtr window, short zoomDir);
  141. WindowPtr        SelectNextWindow (void);
  142. void            DisplayWindow (WindowPtr window, Boolean activate);
  143. void            CloseOurWindow (WindowPtr window);
  144. void            DoCloseAll (void);
  145. void            CenterWindow (WindowPtr window);
  146.  
  147.  
  148. /* ===========
  149.    "Radius.c":
  150.    =========== */
  151. void            InitBigScreen (RadiusData *RadStatus, short *fontSize);
  152.  
  153.  
  154. /* ===============
  155.    "off_screen.c":
  156.    =============== */
  157. GDHandle        GetMaxAreaDevice (Rect *globalRect);
  158. OffScreenRecHdl    CreateOffScreen (Rect *myRect);
  159. void            ToOnScreen (OffScreenRecHdl COSHdl);
  160. void            DisposOffScreen (OffScreenRecHdl *COSHdl);
  161.  
  162.  
  163. /* =========
  164.    "help.c":
  165.    ========= */
  166. Boolean            HelpManagerActive (void);
  167. Boolean            BalloonsOn (void);
  168. Boolean            BalloonShowing (void);
  169. void            HideBalloons (Boolean balloonsUp);
  170. void            ShowBalloons (Boolean balloonsUp);
  171. void            ResetBalloons (Boolean balloonsUp);
  172. void            FindAndShowDynamicBalloons (Boolean balloonsUp);
  173.  
  174.  
  175. /* =========
  176.    "about.c":
  177.    ========= */
  178. void            H_Add_List_String (ListHandle theList, Str255 theString);
  179. void            Create_Help (void);
  180. void            H_Dialog_String (DialogPtr dlg, short theItem, Str255 theString);
  181. void            H_Display_Pict (short thisPict);
  182. void            H_Display_Text (void);
  183. void            H_Error_Message (ErrorTypes theError);
  184. void            H_Handle_List_Event (short whatHit);
  185. void            H_Handle_Update (void);
  186. void            Init_Help (void);
  187. void            Kill_Help_Window (void);
  188. pascal void        H_Scroll_Filter (ControlHandle ctl, short thePart);
  189. short            Parse_Int (varedPtr addrMPtr);
  190. long            Parse_OSType (varedPtr addrMPtr);
  191. void            Parse_String (char *destStr, varedPtr addrSrcStrPtr);
  192. void            H_Refresh_Topics (void);
  193. void            H_Scroll_Picture (short whatHit);
  194. void            H_Scroll_Text (short oldValue, short newValue);
  195. void            H_Set_Button_State (int itemNum, Boolean state);
  196. void            H_User_Message (Str255 theStr);
  197. pascal Boolean    H_Modal_Filter (DialogPtr dlg, EventRecord *event, short *itemHit);
  198. pascal void        H_Frame_Alert_Button (DialogPtr dlg, short theItem);
  199. void            H_DrawGrowIcon (ListHandle theList);
  200. long            H_GetListScrollValues (ListHandle theList);
  201.  
  202.  
  203. /* ========
  204.    "text.c":
  205.    ======== */
  206. Boolean            StylizedTE (void);
  207. short            GetLineHeight (Boolean styleTE, TEHandle teH, short theLine);
  208. short            GetLineNbr (Boolean styleTE, TEHandle teH, short pix);
  209.  
  210.  
  211. /* =========
  212.    "meter.c":
  213.    ========= */
  214. WindowPtr        MeterWindowInit (void);
  215. void            MeterWindowDraw (WindowPtr meterWindow, Str255 mTitle);
  216. void            MeterWindowUpdate (WindowPtr meterWindow,
  217.                                    Str255 mTitle, short currStep, short maxSteps);
  218. void            MeterUpdate (WindowPtr meterWindow, short currStep, short maxSteps);
  219. void            MeterWindowKill (WindowPtr meterWindow);
  220.  
  221.  
  222.  
  223.  
  224. /*    { end file = "protos" }  */